import numpy as np

def xor_binary_arrays(arr1, arr2):
    print(arr1)    # 将小数随机数组转换为整数数组
    int_arr1 = (arr1 * (2**64)).astype(np.uint64)
    int_arr2 = (arr2 * (2**64)).astype(np.uint64)

    # 执行异或操作
    result = np.bitwise_xor(int_arr1, int_arr2)

    # 将结果转换回小数数组
    result_decimal = result / (2**64)

    return result_decimal

# 测试
arr1 = np.array([0.123456789123456, 0.987654321765432, 0.543210987234567], dtype=np.float64)
arr2 = np.array([0.987654321123456, 0.123456789456789, 0.789012345123456], dtype=np.float64)

result = xor_binary_arrays(arr1, arr2)
print("Result:", result)